package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.HgMarketDataMapper;
import com.csun.dsms.mapper.HgReminderDataMapper;
import com.csun.dsms.model.huang.HgMarketData;
import com.csun.dsms.model.huang.HgQueryDto;
import com.csun.dsms.model.huang.HgReminderData;
import com.csun.dsms.service.HgMarketDataService;
import com.csun.dsms.service.HgReminderDataService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class HgReminderDataServiceImpl extends BaseService<HgReminderData>
            implements HgReminderDataService {

        @Resource
        private HgReminderDataMapper hgReminderDataMapper;

        @Override
        public List<HgReminderData> queryDataList(HgQueryDto hgQueryDto) {
            PageHelper.startPage(hgQueryDto.getPageNum(),hgQueryDto.getPageSize());
            return hgReminderDataMapper.queryListWithPage(hgQueryDto);
        }
}

